package com.dson.user.repository;

import com.dson.user.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Integer> {

    User getByToken(String token);

    User getByEmail(String email);

    User getByEmailAndPassword(String email, String password);
}
